package ext.acae2.dms.bean;

public abstract class DataBean {

	public String getMasterId() {
		return masterId;
	}

	public void setMasterId(String masterId) {
		this.masterId = masterId;
	}

	private String id;
    private String number;
    private String name;
    private String version;
    private String state;
	private String type;
	private String masterId;
	
	@Override
	public boolean equals(Object obj) {
		if(obj instanceof DataBean){
			DataBean dataBean = (DataBean)obj;
			return dataBean.getNumber().equals(number)
					&&dataBean.getName().equals(name)&&dataBean.getVersion().equals(version);
		}
		return super.equals(obj);
	}
    
	public DataBean(String id,String number, String name, String version, String state, String type) {
        this.id = id;
		this.number = number;
        this.name = name;
        this.version = version;
        this.state = state;
        this.type = type;
    }
	
	public DataBean(){}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}
    
    public String getNumber() {
        return number;
    }
    
    public void setNumber(String number) {
        this.number = number;
    }
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public String getVersion() {
        return version;
    }
    
    public void setVersion(String version) {
        this.version = version;
    }
    
    public String getState() {
        return state;
    }
    
    public void setState(String state) {
        this.state = state;
    }
    
    public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
}
